package com.example.xitdemo1.Controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @GetMapping("/hi")
    public String hi() {
        //快捷2
        return "Hi";
    }

    @GetMapping("/hello")
    public String hello( ) {
        return "Hello";
    }

}
